package cn.mazexal.examapi.models.qry;

import cn.mazexal.examapi.common.models.PagedQry;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author: Mazexal
 * Date: 2025/5/12
 */
@Data
public class UserCollectQry extends PagedQry {

    private Long userId;

    @Schema(description = "题库id")
    private Long examBankId;

    private Long beginTime;

    private Long endTime;

    private Long menuId;

    public Long getBeginTime(){
        return beginTime == null ? 0L : beginTime;
    }

    public Long getEndTime(){
        return endTime == null ? System.currentTimeMillis() : endTime;
    }
}
